<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/common.jspf" %>
<html>
<head>
    <title>My JSP 'MyJsp.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <script type="text/javascript">
        $(function (){
            $('#storeTable').datagrid({
                url:'${proPath}/storetable/selectPage.action', // user/select.action
                // method:'post',
                //idfield:'productid',
                columns:[[
                    {checkbox:true},
                    {field:'tableCompanyName',title:'公司名',width:100},
                    {field:'tableStoreName',title:'店铺名',width:100},
                    {field:'tablePic',title:'二维码',width:100,align:'right'},
                    {field:'tableNum',title:'餐桌编号',width:100},
                    {field:'tableName',title:'餐桌名称',width:100},
                    {field:'tableSeatNum',title:'座位数',width:100},
                    {field:'tableStatus',title:'餐桌状态',width:100},
                    {field:'tableWays',title:'就餐形式',width:100},
                    {field:'tableCreate',title:'创建时间',width:100},
                    {field:'tableUpdate',title:'更新时间',width:100}
                ]],
                fitColumns:true,
                toolbar: [{
                    iconCls: 'icon-add',
                    text:'选号桌号',
                    handler: function(){
                        //alert('添加');

                        parent.$('#win').window({
                            width:600,
                            height:300,
                            title:'添加餐桌',
                            modal:true,
                            content:"<iframe src='${proPath}/base/goURL.action?url=storetable/addTable' title='添加餐桌' height='100%' width='100%' frameborder='0px'/>"

                        });


                    }
                },'-',{
                    iconCls: 'icon-edit',
                    text:'修改',
                    handler: function(){
                        alert('修改按钮');
                    }
                },'-',{
                    iconCls: 'icon-add',
                    text:'预约餐桌',
                    handler: function(){
                        alert('预约餐桌按钮');
                    }
                },'-',{
                    iconCls: 'icon-no',
                    text:'禁用',
                    handler: function(){
                        alert('禁用按钮');
                    }
                },'-',{
                    iconCls: 'icon-ok',
                    text:'启用',
                    handler: function(){
                        alert('启用按钮');
                    }
                },'-',{
                    iconCls: 'icon-save',
                    text:'部分下载',
                    handler: function(){
                        alert('部分下载按钮');
                    }
                },'-',{
                    iconCls: 'icon-save',
                    text:'全部下载',
                    handler: function(){
                        alert('全部下载按钮');
                    }
                }],
                striped:true,
                rownumbers:true,
                pagination:true,
                pageSize:5,
                pageList:[3,5,7,9,11],
                /* queryParams: {
                 userName: 'easyui',
                 userAddress: 'datagrid'
                 } */


            });

        });
    </script>
<body>
<form action="">
    餐桌编号:<input type="text" name="userName">
    餐桌名称:<input type="text" name="phone">
    <input type="button" value="查询">
</form>
<table id="storeTable"></table>




</body>
</html>